package tr.gov.tubitak.bilgem.esya.certviewer;

/**
 * Created by IntelliJ IDEA.
 * User: ramazan.girgin
 * Date: 12/4/11
 * Time: 3:52 PM
 * To change this template use File | Settings | File Templates.
 */
public class EByteTools {
    public static String toHexString(byte [] bytes,String separetor)
    {
        StringBuilder stringBuilder = new StringBuilder(bytes.length*2);
        for (byte b : bytes) {
            stringBuilder.append(separetor+String.format("%02x",b));
        }
        return stringBuilder.toString();
    }
}
